﻿using System;

namespace stdCall.Models
{
    /// <summary>
    /// 点名模型类：id，学生号，星级，课程号
    /// </summary>
    class UnluckyCall
    {
        private String id;
        private String studentid;
        private int star;
        private int courseID;

        public UnluckyCall()
        {
            id = "";
            studentid = "";
            star = 0;
            courseID = 0;
        }

        public UnluckyCall(String id, String studentid, int star, int courseNum)
        {
            this.id = id;
            this.studentid = studentid;
            this.star = star;
            this.courseID = courseNum;
        }

        public UnluckyCall( String studentid, int star, int courseNum)
        {
            this.studentid = studentid;
            this.star = star;
            this.courseID = courseNum;
        }

        internal String Studentid
        {
            get { return studentid; }
            set { studentid = value; }
        }

        public int Star
        {
            get { return star; }
            set { star = value; }
        }

        public int CourseID
        {
            get { return courseID; }
            set { courseID = value; }
        }

        public String Id
        {
            get { return id; }
            set { id = value; }
        }

        /// <summary>
        /// 获得模型类的信息
        /// </summary>
        /// <returns></returns>
        public String getMessage()
        {
            return ("id:" + id + ",studentid:" + studentid + ",star:" + star.ToString() + ",courseID:" + courseID.ToString() + "");
        }
    }
}
